﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<MvcEngineModelItem<BlogViewData<IList<BlogPostComment>>>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Head" runat="server">
    <title>Comments</title>
    <%= Html.GetCssFile(Url.GetModuleCssPath("MvcEngine.Blog.BackOffice.css")) %>
</asp:Content>


<asp:Content ID="indexContent" ContentPlaceHolderID="MainContent" runat="server">
   
<%= Html.Grid(Model.Item.Item).Columns(column =>
{
    column.For(x => Html.UrlActionLink("Delete", Url.DeleteComment(Model.Item.Blog.Name, x.Id))).DoNotEncode();
    column.For(x => x.Author);
    column.For(x => x.Email);
    column.For(x => x.Comment);
    column.For(x => x.Ip);
    column.For(x => x.Website);
    column.For(x => x.CreatedDate).Format("{0:d}");
}).Attributes(cellSpacing => "0", cellPadding => "0", border => "0")%>

<%= Html.UrlActionLink("Back", Url.Blog(Model.Item.Blog.Name))%>
    
</asp:Content>
